<!doctype html> 
<html ng-app='text'> 
<head> 
    <meta charset="utf-8"> 
    <title></title>
    <style type="text/css">


    </style> 
    <script type="text/javascript" src='angular.js'></script>
    <script type="text/javascript">
   		var app = angular.module('text',[]);
   		app.controller('const',function ($scope,$http){
   			$scope.c = '';
   			$http.get('a.json').success(function (res){
   				//console.log(res)
   				$scope.c = JSON.stringify(res)
   				//alert('chenggong')

   			}).error(function (){
   				alert('shibai')
   			})

   		})

    </script>
</head>
<body ng-controller='const'>
{{c}}
<!--
<div ng-repeat='i in arr'>{{i}}</div>
-->
</body>
</html>